/** 
 * @defgroup countwords
 * @author Lu Shuai
 * @version 1.0
 * @date 2012.5.16
 * @email 00948247@pku.edu.cn
 * @rights All rights reserved. 
 * @{
 */ 
/*This application counts the numbers of 4 specific words using lex tool. 
 */
#include <stdio.h>
/*
 * @name virables
 * defined 4 virables to count the numbers of 4 specific words
 * @{
*/
/**count the number of 'fee' */
extern int fee_count;
/**count the number of 'fie' */
extern int fie_count;
/**count the number of 'foe' */
extern int foe_count;
/**count the number of 'fum' */
extern int fum_count;

/** @}*/

/**
 * @defgroup lex function
 * defined lex function.
 * @{
*/
extern int yylex( void );
/** @}*/

/**
 * @defgroup main function
 * @{
*/
int main( int argc, char ** argv )
{
	
    yylex();	/** call for lex function */
    printf( "%d %d %d %d\n", fee_count, fie_count, foe_count, fum_count );/** print out the result */
    exit( 0 );
}
/** @}*/
/** @}*/

